package red.stu.mc.mod.codeblock.util;

import java.awt.Color;

public class RGB {

	public int r;
	public int g;
	public int b;
	
	public RGB(int r, int g, int b) {
		this.r = r;
		this.g = g;
		this.b = b;
	}
	
	public static int difference(RGB rgb1, RGB rgb2) {
        return (Math.abs(rgb1.r - rgb2.r) 
        		+ Math.abs(rgb1.g - rgb2.g) 
        		+ Math.abs(rgb1.b - rgb2.b)) / 3;  
	}

}